package it.das.proxy;

import java.lang.reflect.Method;

import org.springframework.aop.AfterReturningAdvice;

public class TaskBProxyAfter implements AfterReturningAdvice {

	@Override
	public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
		System.out.println("PROXY of TaskB - START");
		System.out.println("Args:" + (args != null ? args.toString() : " no_arg_found "));
		System.out.println("After EXECUTION of (" + method.getName() + ") for ("  + target.getClass().getName() + ")");
		System.out.println("Returning val:" + (returnValue != null ? returnValue.toString() : " no_return_found "));
		System.out.println("PROXY of TaskB - END");
	}
}
